<?php
/**
 * Created by PhpStorm.
 * User: 38339
 * Date: 2021-05-26
 * Time: 14:58
 */

namespace app\common\business\mysql;
use app\common\model\mysql\YwOtherConfig as models;

class YwOtherConfig
{

    /*
     * 获取单条数据
     */
    public static function getOne(){
        return models::getOne();
    }

   /*
    * 修改数据
    */
   public static function edit($receiveData,$admin){
       $data = [
           'service_phone' => $receiveData['service_phone'],
       ];
       models::where(['id'=>1])->update($data);
       //写入日志
       CommonLog::insertLog($admin['id'],'/YwOtherConfig/edit','',$data,2);
       return true;
   }


}